package uy.com.csi.gestpro.model.proyecto;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The persistent class for the gp_avnce database table.
 * 
 */
@Entity
@Table(name = "gp_avnce", schema = "proyecto")
@NamedQuery(name = "GpAvnce.findAll", query = "SELECT g FROM GpAvnce g")
public class GpAvnce implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Basic(optional = false)
	@SequenceGenerator(name = "sq_id_avance", sequenceName = "proyecto.sq_id_avance", allocationSize = 1)
	@GeneratedValue(generator = "sq_id_avance")
	private Integer id;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_infrme_drio")
	private GpInfrmeDrio gpInfrmeDrio;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_dstrbcion")
	private GpDstrbcion gpDstrbcion;

	private Double prcntaje;

	public GpAvnce() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Double getPrcntaje() {
		return this.prcntaje;
	}

	public void setPrcntaje(Double prcntaje) {
		this.prcntaje = prcntaje;
	}

	public GpInfrmeDrio getGpInfrmeDrio() {
		return gpInfrmeDrio;
	}

	public void setGpInfrmeDrio(GpInfrmeDrio gpInfrmeDrio) {
		this.gpInfrmeDrio = gpInfrmeDrio;
	}

	public GpDstrbcion getGpDstrbcion() {
		return gpDstrbcion;
	}

	public void setGpDstrbcion(GpDstrbcion gpDstrbcion) {
		this.gpDstrbcion = gpDstrbcion;
	}

}